using SurveySez.Model;

namespace SurveySez.ViewModel
{
	public static class Extensions
	{
		public static Survey SetQuestion(this Survey survey, string question)
		{
			survey.Question = question;
			return survey;
		}

		public static Survey AddAnswer(this Survey survey, string answer)
		{
			survey.NewResponse().Answer = answer;
			return survey;
		}
	}
}
